package com.xixi.demo02.model;


import java.io.Serializable;

//要用一个implements serializable空接口 ，能够通过rmi（ejb）提供远程调用
//
public class ClassInfo implements Serializable {
      private int classId;  //班级编号
    private String className;  //班级名称
    private String gradeName;  //年级
    private String headTeachName;  //班主任名称
    private String classSlogan;  //班级口号
    private int classPeople;  //班级人数


    public ClassInfo() {
    }

    public ClassInfo(int classId, String className, String gradeName, String headTeachName, String classSlogan, int classPeople) {
        this.classId = classId;
        this.className = className;
        this.gradeName = gradeName;
        this.headTeachName = headTeachName;
        this.classSlogan = classSlogan;
        this.classPeople = classPeople;
    }

    public int getClassId() {
        return classId;
    }

    public void setClassId(int classId) {
        this.classId = classId;
    }

    public String getClassName() {
        return className;
    }

    public void setClassName(String className) {
        this.className = className;
    }

    public String getGradeName() {
        return gradeName;
    }

    public void setGradeName(String gradeName) {
        this.gradeName = gradeName;
    }

    public String getHeadTeachName() {
        return headTeachName;
    }

    public void setHeadTeachName(String headTeachName) {
        this.headTeachName = headTeachName;
    }

    public String getClassSlogan() {
        return classSlogan;
    }

    public void setClassSlogan(String classSlogan) {
        this.classSlogan = classSlogan;
    }

    public int getClassPeople() {
        return classPeople;
    }

    public void setClassPeople(int classPeople) {
        this.classPeople = classPeople;
    }

    @Override
    public String toString() {
        return "ClassInfo{" +
                "classId=" + classId +
                ", className='" + className + '\'' +
                ", gradeName='" + gradeName + '\'' +
                ", headTeachName='" + headTeachName + '\'' +
                ", classSlogan='" + classSlogan + '\'' +
                ", classPeople=" + classPeople +
                '}';
    }
}
